#pragma once

class Complex
{
private:
        int a;
        int b;
        //全局函数 重载+运算符
        friend Complex operator+(Complex &c1, Complex &c2);
        friend Complex myAdd(Complex &c1, Complex &c2);
        //全局函数 重载前置++
        friend Complex& operator++(Complex &c);
        //后置++
        friend Complex operator++(Complex &c, int);
public:
        Complex(int a = 0, int b = 0);
        ~Complex();
public:
        void printComplex();
public:
        Complex operator-(Complex &c);

         //前置--
        Complex& operator--();

        //后置--
        Complex operator--(int);
};


